package cn.kgc.springboot04.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author: mosin
 * @version: v1.0  2022/12/28
 *
 * User  - > user table  字段  id  name  age  email
 * id
 * name
 * age
 * email
 */
@Data
@TableName("sys_user")
public class User {
    @TableId(type=IdType.AUTO) //  设置主键类型是自增主键
    private Long id;
    private String name;
    private Integer age;
    @TableField("email")
    private String userEmail;
    @TableField(exist = false)
    private String sex;
}
